package com.txby.wrApi.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;
/**
 * 实体类 - 基类
* @ClassName: BaseEntity 
* @Description: TODO （描述）
* @author 作者 jacking
* @date 2016-6-29 下午6:38:31
 */
@MappedSuperclass
@SuppressWarnings("all")
public class BaseEntity implements java.io.Serializable {
	@Id
	@GenericGenerator(name="uuid",strategy="uuid")
	@GeneratedValue(generator="uuid")
	@Column(name = "id", unique = true, nullable = false)
    private String id;// ID
	private Date createTime=new Date();//生成 记录时间
	private Date updateTime=createTime;//修改 记录时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

 

}
